import os
import subprocess

from optparse import OptionParser

def main():
    parser = OptionParser()

    parser.add_option("-i", "--input",
                        dest = "input",
                        help = "input video file",
                        type = "string",
                        action = "store"
                        )
    
    (options, args) = parser.parse_args()

    def bailout():
        parser.print_help()
        raise SystemExit

    if not options.input:
        bailout()

    print(options.input) 
    print(os.path.basename(options.input))
    print(os.path.basename(options.input).split(".")[0])
    


if __name__ == '__main__':
    main()